package Java9_8;

import java.util.ArrayList;
import java.util.List;

public class ListTest {
    public static void main(String[] args) {
        List list = new ArrayList();
        list.add("wo");
        list.add("123");
        list.add("abc");
        list.add("111");
        list.add("111");
        System.out.printf(list.get(1) + "\n");
        System.out.println(list.contains("111"));
        for (Object o:list)
            System.out.print(o+" ");
        System.out.printf(list.set(1, "wo") + "\n ");
        System.out.printf(list.toString());
    }
}

